package com.anan;


import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

/**
 * @Author: Painter
 * @project_name: cjjdll
 * @system_login: sunshine
 * @time: 2023/10/2622:25
 */


public class main {


    /*
    *
    * gcc -finput-charset=GBK -fexec-charset=UTF-8  -I "C:\Program Files\Java\jdk-1.8\include" -I "C:\Program Files\Java\jdk-1.8\include\win32" -shared -o AnanJNI.dll com_anan_AnanJNI.cpp
    *
    * gcc -I "C:\Program Files\Java\jdk-1.8\include" -I "C:\Program Files\Java\jdk-1.8\include\win32" -shared -o AnanJNI.dll com_anan_AnanJNI.cpp
     *
     * */

    public static void main(String[] args) {
        int v1 = DLL.dll.add(10, 20);
        int v2 = DLL.dll.sub(10, 20);
        DLL.dll.print("v1="+v1+"\nv2="+v2);



        AnanJNI ananJNI = new AnanJNI();
        int v3 = ananJNI.add(100, 200);
        int v4 = ananJNI.sub(300, 200);
        System.out.println(v3);
        System.out.println(v4);
        String s = (String) ananJNI.test("v3="+v3+"\nv4="+v4);

        System.out.println(s);
    }
}
